package controllers

import (
	"github.com/beego/beego/v2/server/web"
)

// FrontendController 前端页面控制器
type FrontendController struct {
	web.Controller
}

// Index 返回Vue3主页面
func (c *FrontendController) Index() {
	// 设置响应头，确保正确处理HTML
	c.Ctx.Output.Header("Content-Type", "text/html; charset=utf-8")
	
	// 渲染views/index.html
	c.TplName = "index.html"
}

